package com.zqq.provider.router

/**
 * 模块路由 路径定义
 * 注意【不同模块的路由路径的第一个单词不能相同】
 * @author zqq on 2018/7/30
 */
object RouterPath {

    //用户模块
    class UserCenter {
        companion object {
            const val PATH_LOGIN = "/userCenter/login"
            const val PATH_FORGET_PWD = "/userCenter/forget"
            const val PATH_RESET_PWD = "/userCenter/reset"

            const val ROUTE_KEY_FORGET = "mobile"

        }
    }

    //商品模块
    class GoodsCenter {
        companion object {
            /*--路由--*/
            const val PATH_GOODS = "/goodsCenter/goods"
            const val PATH_CART = "/goodsCenter/carts"
            const val PATH_GOODS_DETAIL = "/goodsCenter/goodsDetail"
            const val PATH_SEARCH_GOODS = "/goodsCenter/searchGoods" //关键字搜索商品页


            /***---传递数据的Key---**/
            const val KEY_CATEGORY_ID = "category_id" //商品分类ID
            //搜索
            const val KEY_SEARCH_GOODS_TYPE = "search_goods_type"//搜索商品类型
            //按关键字搜索
            const val SEARCH_GOODS_TYPE_KEYWORD = 1
            const val KEY_GOODS_KEYWORD = "goods_keyword"  //商品关键字
            //商品ID
            const val KEY_GOODS_ID = "goods_id"

            /***-----偏好设置 Key-----**/
            //搜索历史 本地存储
            const val SP_SEARCH_HISTORY = "search_history"
            //购物车数量
            const val SP_CART_SIZE = "cart_size"


            //sku分隔标识
            const val SKU_SEPARATOR = ","
        }
    }

    //订单模块
    class OrderCenter {
        companion object {
            const val PATH_ORDER_CONFIRM = "/orderCenter/confirm"
            const val PATH_SHIP_ADDRESS = "/orderCenter/shipAddress"
            const val PATH_SHIPEDIT_ADDRESS = "/orderCenter/shipEditAddress"
            const val PATH_ORDER_STATUS = "/orderCenter/orderStatus"


        }
    }

    //支付模块
    class PaySDK {
        companion object {
            const val PATH_PAY = "/paySDK/pay"
        }
    }

    //消息模块
    class MessageCenter {
        companion object {
            //提供跨模块的-Key
            const val PATH_MESSAGE_PUSH = "/messageCenter/push"
            const val PATH_MESSAGE_ORDER = "/messageCenter/order"
        }
    }

}